﻿@namespace SE.PO.CInterface.Web.Pages.DB.Room
@using SE.PO.CInterface.Web.Clients
@using SE.PO.CInterface.Enums
@using SE.PO.CInterface.Web.Pages.DB.Components
@using System.ComponentModel.DataAnnotations
@inject RoomClient Client

<Form
    Model="@Model"
    Style="margin-top: 8px;"
    OnFinish="OnFinish"
    OnFinishFailed="OnFinishFailed"
    @ref="@Form">
    <FormItem Label="下级SCID" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
            <Input Style="width: 220px;" Placeholder="SC编码，下级SCID" @bind-Value="@context.ScId"/>
       </FormItem>
       <FormItem Label="机房编号" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
            <Input Style="width: 220px;" Placeholder="主键：机房编号，按照集团统一资源库模型编制" @bind-Value="@context.Id"/>
       </FormItem>
       <FormItem Label="站点" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
          <SelectSite Model="@Model" SiteId="@context.SiteId"></SelectSite>
       </FormItem>
       <FormItem Label="机房类型" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
          <EnumSelect Style="width: 220px;" TEnum="RoomType?" @bind-Value="@context.RoomType" />
       </FormItem>
       <FormItem Label="机房名称" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
            <Input Style="width: 220px;" Placeholder="机房名称" @bind-Value="@context.RoomName"/>
       </FormItem>
       <FormItem Label="机房描述" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
            <Input Style="width: 220px;" Placeholder="机房描述" @bind-Value="@context.RoomDesc"/>
       </FormItem>
</Form>